package com.zdft.promotion.rabbitmq.domain;

import lombok.Getter;

@Getter
public enum QueueEnum {

    //订单信息修改
    ORDER_UPDATE("promotion.order.direct", "promotion.order", "promotion.order"),
    //异步减库存
    STOCK_EDIT("stock.edit", "stock.edit", "stock.edit"),
    //生成调拨越库单
    TRANSFER_SLIP("transfer.slip", "transfer.slip", "transfer.slip"),
    //入库单同步
    RECEIPTES_PUSH("promotion.receipts.direct", "promotion.receipts", "promotion.receipts"),
    //出库单同步
    DELIVERY_PUSH("promotion.delivery.direct","promotion.delivery","promotion.delivery"),
    //调拨越库同步
    TRANSFERS_PUSH("promotion.transfers.direct","promotion.transfers","promotion.transfers"),
    //调拨越库明细同步
    TRANSFERS_DETAIL_PUSH("promotion.transfers.detail.direct","promotion.transfers.detail","promotion.transfers.detail"),
    //批次信息同步
    TRANSFERS_BATCH_PUSH("promotion.transfers.batch.direct","promotion.transfers.batch","promotion.transfers.batch"),
    //缺货记录信息同步
    TRANSFERS_LACK_PUSH("promotion.transfers.lack.direct","promotion.transfers.lack","promotion.transfers.lack")
    ;


    /**
     * 交换名称
     */
    private String exchange;
    /**
     * 队列名称
     */
    private String name;
    /**
     * 路由键
     */
    private String routeKey;

    QueueEnum(String exchange, String name, String routeKey) {
        this.exchange = exchange;
        this.name = name;
        this.routeKey = routeKey;
    }
}
